package com.sbj.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.sbj.dto.jackson.CustomDecimalSerialize;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author summer
 * @since 2024/08/10 10:02:40
 * 支出优惠劵、推广、奖金明细
 */
@Getter
@Setter
@TableName("expend")
public class Expend implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("price")
    @JsonSerialize(using = CustomDecimalSerialize.class)
    private BigDecimal price;

    @TableField(value = "createTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime createTime;

    @TableField("member_id")
    private Integer memberId;

    @TableField("name")
    private String name;

    /**
     * 1优惠券 2 我的奖金 3 推广奖金
     */
    @TableField("type")
    private Integer type;

    @TableField("serial_num")
    private String serialNum;

}
